export default [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'mb-home',
    meta:{
      keepAlive: true,
    
    },
    /* @vite-ignore */
    component: () => import('@/views/home/index.vue'),
    children:[
      { 
        path:'',
        name:'mb-main',
        meta:{
          keepAlive: true,
      
        },
        component:()=>import('@/views/home/Mobile/Main/index.vue'),
        children:[{
          path:"",
          name:'mb-main-cardList',
          meta:{
            keepAlive: true,
   
          },
          component:()=>import('@/views/home/Mobile/CardList/index.vue')
        }],
   
      },
        {
        name: 'mb-main-detail',
        path: ':id',
        props: true,
        /* @vite-ignore */
        component: () => import('@/views/home/Mobile/CardList/details/index.vue'),
      },
    ],
  },    
  {
    path:"/profile",
    name:'mb-login',
    component:()=>import('@/views/home/components/login/index.vue')
  },
    {
    path:'/register',
    name:'mb-register',
    component:()=>import('@/views/home/components/register/index.vue')
  },
  {
    path:'/forgot',
    name:"mb-forgot",
    component:()=>import('@/views/home/components/forgotPassword/index.vue')
  },
  {
    path: '/:pathMatch(.*)*', // 捕获所有未匹配的路径
    name: 'not-found',
    component: () => import('@/views/home/components/404/index.vue') // 404 页面组件
  },
  {
    path: '/My',
    component: () => import('@/views/home/Desktop/My/index.vue')
  }
]
